package kr.hkit.androidcomplete03.ch25;

import kr.hkit.androidcomplete03.R;
import android.app.Activity;
import android.content.ClipData;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;

public class DragCoin extends Activity {
/*	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dragcoin);
		
		findViewById(R.id.coin500).setOnTouchListener(mTouchLintener);
		findViewById(R.id.coin100).setOnTouchListener(mTouchLintener);
		findViewById(R.id.coin50).setOnTouchListener(mTouchLintener);
		
		findViewById(R.id.uplinear).setOnDragListener(mDragListener);
		findViewById(R.id.downlinear).setOnDragListener(mDragListener);
	}
	
	View.OnTouchListener mTouchLintener = new View.OnTouchListener() {
		
		@Override
		public boolean onTouch(View view, MotionEvent event) {
			if(event.getAction() == MotionEvent.ACTION_DOWN){
				ClipData clip = ClipData.newPlainText("", "");
				view.startDrag(clip, new CanvasShadow(view,
						(int)event.getX(), (int)event.getY()), view, 0);
			}
		}
	};*/
}
